package sctu.edu.java.year2016.team02.wanggaowen.day20160525.chapter7_2;

/**
 * Created by 15c on 2016/5/25.
 */import java.util.Scanner;
public class Area {
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        System.out.print("请输入矩形的长：");
        float a=scan.nextFloat();

        System.out.print("请输入矩形的宽：");
        float b=scan.nextFloat();

        Nature orthogon=new Nature(a,b);
        System.out.print("矩形面积："+orthogon.getArea());
    }
}
